package testCasalib 
{
	import flash.geom.Point;
	import org.casalib.display.CasaMovieClip;
	import org.casalib.display.CasaSprite;
	import org.casalib.util.DisplayObjectUtil;
	
	/**
	 * ...
	 * @author ...
	 */
	public class displayObj extends CasaMovieClip 
	{
		
		public function displayObj() 
		{
			var box:CasaSprite = new CasaSprite();
			box.scaleX         = -2;
			box.scaleY         = 1.5;
			box.graphics.beginFill(0xFF00FF);
			box.graphics.drawRect(-20, 100, 50, 50);
			box.graphics.endFill();

			const offset:Point = DisplayObjectUtil.getOffsetPosition(box);

			trace(offset)

			box.x = 10 + offset.x;
			box.y = 10 + offset.y;

			this.addChild(box);
		}
		
	}

}